# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-msldap
_pyname=msldap
pkgver=0.5.12
pkgrel=0
pkgdesc="Python library to play with MS LDAP"
url="https://github.com/skelsec/msldap"
arch="noarch"
license="MIT"
depends="
	py3-asn1crypto
	py3-asyauth
	py3-asysocks
	py3-minikerberos
	py3-prompt_toolkit
	py3-tqdm
	py3-unicrypto
	py3-wcwidth
	py3-winacl
	python3
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/msldap/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
1b4a2db63820ee975893e0b3417bc9ed6fa8fe74c0b7d734acd428c6da51725eef58146555abdde52168a323a93c6ed7d92237aaf477eb591d26823e091e2050  py3-msldap-0.5.12.tar.gz
"
